<template>
  <el-input-number
    type="number"
    style="width: 100%;"
    controls-position="right"
    :readonly="form.readonly"
    v-model="form.data[item.prop]">
  </el-input-number>
</template>

<script>
export default {
  name: "xl-inputNumber",
  props: {
    dictionary: {
      type: Object,
      default: {}
    },
    item: {
      type: Object,
      default: {}
    },
    form: {
      type: Object,
      default() {
        return {
          parentId: "",
          list: [],
          rules: {},
          childTable: []
        }
      }
    }
  },
  data() {
    return {
      deptData: [],
      user: {
        show: false,
        infos: ""
      },
    }
  },
}
</script>

<style scoped>

</style>
